"""
查看app的路由规则，快速上手
"""""

from flask import Flask

app = Flask(__name__)

# 绑定app和视图函数之间路由关系
@app.route("/")
def index():
    return "<h1>this is index</h1>"
@app.route("/haha")
def index2():
    return "this is index"

if __name__ == '__main__':
    print(app.url_map)

    app.run()